package com.llbnk.service;

import com.llbnk.error.BusinessException;
import com.llbnk.pojo.model.UserModel;

/**
 * @author llbnk
 * @create 2022-08-19 23:55
 */
public interface UserService {

    UserModel getUserById(Integer id);

    //用于注册用户的Service接口
    void register(UserModel userModel) throws BusinessException;

    void test();

    /**
     * 用户登录校验
     * @param telphone 手机号
     * @param encrptPassword 用户加密后的密码
     * @throws BusinessException
     */
    UserModel vaildateLogin(String telphone, String encrptPassword) throws BusinessException;

    /**
     * 用于做下单的用户缓存操作
     * @param id
     * @return
     */
    UserModel getUserByIdInCache(Integer id);

}
